package com.liuning.async;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
//开启异步
@EnableAsync
//开启定时功能注解
@EnableScheduling
public class AsyncTaskApplication {
    public static void main(String[] args) {
        SpringApplication.run(AsyncTaskApplication.class,args);
    }
}
